﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Profile;
using System.Data;
using System.Web.Security;

namespace WebSite.cn
{
    public partial class register : System.Web.UI.Page
    {
        // Fields


        // Methods
        protected void Button1_Click(object sender, EventArgs e)
        {

                //DataTable table = SQLAccess.GreatDs("select * from DB_Member where memberlogin='" + re.replace(this.usernamea.Value) + "'").Tables[0];
                //if (table.Rows.Count > 0)
                //{
                //    base.Response.Write("<script language='javascript'>alert('对不起，该用户名已存在！');window.history.go(-1);</script>");
                //    base.Response.End();
                //}
                //else
                //{
                //    SQLAccess.DoSql(string.Concat(new object[] { "insert into DB_Member (memberlogin,memberpwd,email,membername,sex,tel1,updatetime,state,rankid) values ('", re.replace(base.Request.Form["usernamea"]), "','", FormsAuthentication.HashPasswordForStoringInConfigFile(re.replace(base.Request.Form["pas"]), "MD5"), "','", re.replace(base.Request.Form["email"]), "','", re.replace(base.Request.Form["cname"]), "','", "", "','", re.replace(base.Request.Form["tel"]), "','", DateTime.Now, "',1,1)" }));
                //   WebSite.login.usercenter(re.replace(base.Request.Form["usernamea"]), FormsAuthentication.HashPasswordForStoringInConfigFile(re.replace(base.Request.Form["pas"]), "MD5"), "0");
                //    base.Response.End();
                //}
        }

        protected void Page_Load(object sender, EventArgs e)
        {
        }

        // Properties


    }
}